/* Css/SentimentAnalysis.css .*/

.container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #f9f9f9;
}

h1 {
  font-size: 24px;
  margin-bottom: 20px;
  text-align: center;
}

.text-input-container {
  position: relative;
  margin-bottom: 20px;
}

textarea {
  width: calc(100% - 40px); /* 调整输入框宽度，留出按钮的空间 */
  height: 150px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  resize: vertical;
}

.icon-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.icon-button img {
  width: 20px; /* 调整图标的宽度 */
  height: 20px; /* 调整图标的高度 */
  display: block; /* 确保图标居中显示 */
  margin: auto; /* 居中对齐 */
}

.upload-button {
  right: 80px; /* 调整上传按钮的位置 */
}

.microphone-button {
  right: 55px; /* 调整语音输入按钮的位置 */
}

.clear-button {
  right: 30px; /* 调整清除按钮的位置 */
}

.undo-button {
  right: 5px; /* 调整撤销按钮的位置 */
}

.result {
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  margin: 0 10px;
  font-size: 16px;
  cursor: pointer;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
}

button:hover {
  background-color: #0056b3;
}
